package map;

import terrain.Terrain;

public class Map {
	static Terrain s_terrain = null;
	
	public static void SetTerrain (Terrain terrain){
		if (s_terrain != null)
			s_terrain = null;
		s_terrain = terrain;
	}
	
	public static Terrain GetTerrain (){
		return s_terrain;
	}
	
	public static float GetMapHeightAtPoint(int X, int Z){
		//return s_terrain.GetScaleHeightAtPoint(X, Z);
		return 0;
	}
	
	public static float GetMapX(int X){
		return s_terrain.GetScaleX(X);
	}
	
	public static float GetMapZ(int Z){
		return s_terrain.GetScaleX(Z);
	}
	
	public static int GetSize(){
		if (s_terrain != null){
			return s_terrain.GetWidth();
		}
		return 32;
	}
	
}
